//
//  MZY_designerButton.m
//  FullHouse
//
//  Created by dllo on 16/1/26.
//  Copyright © 2016年 yy. All rights reserved.
//

#import "MZY_designerButton.h"

@implementation MZY_designerButton

- (void)dealloc
{
    [self.picImageView release];
    [self.nameLabel release];
    [super dealloc];
}

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createView];
    }
    return self;
}

- (void)createView{
    self.picImageView = [[UIImageView alloc]init];
    [self.contentView addSubview:self.picImageView];
    [self.picImageView release];
    
    self.nameLabel = [[UILabel alloc]init];
    [self.contentView addSubview:self.nameLabel];
    [self.nameLabel release];
}

- (void)layoutSubviews{
    [super layoutSubviews];
    self.picImageView.frame = CGRectMake(10, 10, 30, 30);
    self.nameLabel.frame = CGRectMake(50, 10, 100, 30);
}

@end
